<!DOCTYPE html>
<html>
<head>
    <include file="./public/sty.html"/>
    <style>
        .c-pages{padding:20px 0; text-align: center;}
        .c-pages.tl{text-align: left;}
        .c-pages span{display: inline-block; margin-right: 5px; font-size:12px; height:28px; line-height: 28px;}
        .c-pages span.col{color: #fe344e; font-weight: 600;}
        .c-pages span a{display: inline-block; margin:0 3px; height:28px; line-height: 28px; text-align: center; padding:0 12px; border:1px solid #ccc; text-decoration: none; border-radius: 2px;}
        .c-pages span a:link,.c-pages span a:active,.c-pages span a:visited{color: #333;}
        .c-pages span a:hover{ color: #ff8540; }
        .c-pages span a.active{color: #fff; background: #ff8540;}
        .c-pages  .current{ color: #fff; background: #ff8540; display: inline-block; margin: 0 3px; height: 28px;
            line-height: 28px;
            text-align: center;
            padding: 0 12px;
            text-decoration: none;
            border-radius: 2px;
        }
    </style>
</head>
</head>
<body>
<div id="app" class="securityCenter">
    <include file="./public/header.html"/>

    <div class="container containerUser fix pt15" s="[object Object]">
        <div class="slideUser">
            <ul class="sildeSession"><h3><span></span>账号管理</h3>
                <li class=""><a href="{:U('Users/personalInfo')}">个人信息</a></li>
                <li class="curr"><a href="{:U('Users/securityCenter')}">安全中心</a></li>
                <li class=""><a href="{:U('Users/manageBankcard2')}">银行卡管理</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>投注管理</h3>
                <li><a href="{:U('Users/BetRecord')}" class="">投注记录</a></li>
                <li><a href="{:U('Users/seekOrder')}" class="">追号记录</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>资金管理</h3>
                <li><a href="{:U('Users/BillRecord')}" class="">交易记录</a></li>
                <li class=""><a href="{:U('Users/PLstatement')}">今日盈亏</a></li>
            </ul>
            <ul class="sildeSession">
                <h3><span></span>代理中心</h3>
                <li><a href="{:U('Users/agentIntro')}" class="">代理说明</a></li>
                <li class=""><a href="{:U('Users/agentReport')}">代理报表</a></li>
                <li><a href="{:U('Users/lowerReport')}" class="">下级报表</a></li>
                <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
                <li><a href="{:U('Users/agentMember')}" class="">会员管理</a></li>
                <li><a href="{:U('Users/agentBetRecord')}" class="">投注明细</a></li>
                <li><a href="{:U('Users/agentBillRecord')}" class="">交易明细</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>消息管理</h3>
                <li><a href="{:U('Users/letter')}" class="">站内信</a></li>
                <li><a href="{:U('Users/Notice')}" class="">网站公告</a></li>
            </ul>
        </div>
        <div data-v-44b7026d="" class="userRight"><div data-v-44b7026d="" class="userTitle mgb10">
            下级报表
            <foreach name="sh" item="vq">
                <a data-v-44b7026d=""> &gt; <span data-v-44b7026d="" onclick="fs('{$vq}')">{$vq}</span></a>
            </foreach>
        </div> 
        <div data-v-44b7026d="" class="userMain mgb10">
            <div data-v-44b7026d="" id="timeType" class="newTab">
                <a data-v-44b7026d="" onclick="xz(1)" class="<?php if($shijian=='1'){echo 'curr';}; ?>">今天</a>
                <a data-v-44b7026d="" onclick="xz(2)" class="<?php if($shijian=='2'){echo 'curr';}; ?>">昨天</a>
                <a data-v-44b7026d="" onclick="xz(3)" class="<?php if($shijian=='3'){echo 'curr';}; ?>">本月</a>
                <a data-v-44b7026d="" onclick="xz(4)" class="<?php if($shijian=='4'){echo 'curr';}; ?>">上个月</a>
            </div> 
            <div data-v-44b7026d="" class="searchDetail">
                <table data-v-44b7026d="" class="lowerReportTable">
                    <tbody data-v-44b7026d="">
                        <tr data-v-44b7026d="">
                            <th data-v-44b7026d="">账号</th> 
                            <th data-v-44b7026d="">用户类型</th> 
                            <th data-v-44b7026d="">投注金额</th> 
                            <th data-v-44b7026d="">中奖金额</th> 
                            <th data-v-44b7026d="">返点金额</th> 
                            <th data-v-44b7026d="">活动礼金</th> 
                            <th data-v-44b7026d="">投注人数</th> 
                            <th data-v-44b7026d="">盈利</th>
                        </tr>
                    </tbody> 
                    <tbody data-v-44b7026d="" class="_tableList">
                        <php>if(!empty($wanjia)):</php>
                        <foreach name="wanjia" item="vo">
                        <tr data-v-44b7026d="">
                            <td data-v-44b7026d="" class="username" style="color: rgb(74, 169, 219);">{$vo.accounts}</td>
                            <td data-v-44b7026d=""><?php echo count($sh)+1;?>级
                            <if condition="$vo.utype eq 1 ">代理
                             <else /> 玩家
                             </if>
                            </td> 
                            <td data-v-44b7026d=""><?php echo sprintf("%.2f",$vo['touzhu']); ?></td>
                            <td data-v-44b7026d=""><?php echo sprintf("%.2f",$vo['zhongjiang']); ?></td>
                            <td data-v-44b7026d=""><?php echo sprintf("%.2f",$vo['fandian']); ?></td>
                            <td data-v-44b7026d=""><?php echo sprintf("%.2f",$vo['huodong']); ?></td>
                            <td data-v-44b7026d="">
                                <if condition="$vo['xj'] gt 0 "><a data-v-44b7026d="" href="{:U('Users/lowerReport',array('userid'=>$vo['userid'],'lab'=>'1','shijian'=>$shijian))}">{$vo.xj}</a> 
                                 <else />{$vo.xj}
                                 </if>
                            </td> 
                            <td data-v-44b7026d=""><a data-v-44b7026d="" style="color: rgb(228, 57, 60);"><?php echo sprintf("%.2f",$vo['yingli']); ?></a>
                            </td>
                        </tr>
                        </foreach>
                        <php>else:</php>
                        <tr data-v-44b7026d="" style="border-bottom-width: 0px;">
                            <td data-v-44b7026d="" colspan="100">
                                <div data-v-44b7026d="" class="notContent" style="padding: 100px 0px;">
                                    <i data-v-44b7026d="" class="iconfont"></i>暂无记录
                                </div>
                            </td>
                        </tr>
                        <php>endif;</php>  
                    </tbody>
                </table>
            </div> 
            <div class="c-pages tc">
                <span>{$page}第{$p}页/共{$totalpage}页</span>
            </div>
        </div>
    </div>
    </div>
    <include file="./public/footer.html"/>
</div>


<script src="/style/js/jquery.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
    var sj = '<?php echo $shijian;?>';
  $("#timeType a").click(function(){
      $(this).addClass("curr").siblings().removeClass("curr");
  })

  function fs(nm){
    $.ajax({
         type: "POST",
         url: "{:U('Users/get_id')}",
         data: {name:nm},
         success: function(data){
            var dataObj=eval("("+data+")");//
             if(dataObj){
                location.href = '{:U("users/lowerReport")}?userid='+dataObj+'&lab='+2+'&shijian='+sj;
             }
          }
     });
  }

    //时间的 传值
  function xz(a){
      window.location.href="/Users/lowerReport/shijian/"+a;
  }
</script>
</body>
</html>